package com.als.healthymananger.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.util.Date;

@Data
@Schema(title = "appointment", description = "预约信息")
public class AppointmentDto {

    @Schema(description = "预约序列号")
    private Integer id;

    @NotNull
    @Schema(description = "用户名")
    private String username;

    @NotNull
    @Schema(description = "预约日期")
    private LocalDate date;

    @NotNull
    @Schema(description = "姓名")
    private String name;

    @NotNull
    @Schema(description = "民族")
    private String nation;

    @NotNull
    @Schema(description = "性别", type = "string", allowableValues = {"男", "女"})
    private String sex;
    @Schema(description = "年龄")
    private Integer age;
    @NotNull
    @Schema(description = "身份证号")
    private String identity;

    @NotNull
    @Schema(description = "电话")
    private String phone;

    @NotNull
    @Schema(description = "预约方式，电话预约或微信预约")
    private String type;

    @Schema(description = "预约是否有效，默认否", type = "string", allowableValues = {"是", "否"})
    private String enable = "否";

    @NotNull
    @Schema(description = "婚姻状况")
    private String marry;
    @Schema(description = "出生日期")
    private LocalDate birthday;

}
